<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{tiersmsgs['navigation.back']}" action="/jsf/tiers/viewTiers.xhtml"/>
		
			<p:panel header="#{tiersmsgs['caractpp.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{tiersmsgs['caractpp.cpptiers.title']}:*" />
							<h:inputText id="tiers_cpptiers" value="#{TiersComponent.caractpp.cppTiers}" required="true" label="tiers_cpptiers" />
					<h:outputText value="#{tiersmsgs['caractpp.cppsexe.title']}:" />
							<h:inputText id="tiers_cppsexe" value="#{TiersComponent.caractpp.cppSexe}" required="false" label="tiers_cppsexe" />
					<h:outputText value="#{tiersmsgs['caractpp.cppqualite.title']}:" />
							<h:inputText id="tiers_cppqualite" value="#{TiersComponent.caractpp.cppQualite}" required="false" label="tiers_cppqualite" />
					<h:outputText value="#{tiersmsgs['caractpp.cppnompers.title']}:" />
							<h:inputText id="tiers_cppnompers" value="#{TiersComponent.caractpp.cppNomPers}" required="false" label="tiers_cppnompers" />
					<h:outputText value="#{tiersmsgs['caractpp.cppprenompers.title']}:" />
							<h:inputText id="tiers_cppprenompers" value="#{TiersComponent.caractpp.cppPrenomPers}" required="false" label="tiers_cppprenompers" />
					<h:outputText value="#{tiersmsgs['caractpp.cppnomjeunefille.title']}:" />
							<h:inputText id="tiers_cppnomjeunefille" value="#{TiersComponent.caractpp.cppNomJeuneFille}" required="false" label="tiers_cppnomjeunefille" />
					<h:outputText value="#{tiersmsgs['caractpp.cppdatenaissance.title']}:" />
							<p:calendar id="tiers_cppdatenaissance" value="#{TiersComponent.caractpp.cppDateNaissance}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{tiersmsgs['caractpp.cppcsp.title']}:" />
							<h:inputText id="tiers_cppcsp" value="#{TiersComponent.caractpp.cppCsp}" required="false" label="tiers_cppcsp" />
					<h:outputText value="#{tiersmsgs['caractpp.cppregimesocial.title']}:" />
							<h:inputText id="tiers_cppregimesocial" value="#{TiersComponent.caractpp.cppRegimeSocial}" required="false" label="tiers_cppregimesocial" />
					<h:outputText value="#{tiersmsgs['caractpp.cppcodeprofession.title']}:" />
							<h:inputText id="tiers_cppcodeprofession" value="#{TiersComponent.caractpp.cppCodeProfession}" required="false" label="tiers_cppcodeprofession" />
					<h:outputText value="#{tiersmsgs['caractpp.cppsituationfamille.title']}:" />
							<h:inputText id="tiers_cppsituationfamille" value="#{TiersComponent.caractpp.cppSituationFamille}" required="false" label="tiers_cppsituationfamille" />
					<h:outputText value="#{tiersmsgs['caractpp.cppnombreenfants.title']}:" />
							<h:inputText id="tiers_cppnombreenfants" value="#{TiersComponent.caractpp.cppNombreEnfants}" required="false" label="tiers_cppnombreenfants" />
					<h:outputText value="#{tiersmsgs['caractpp.cppnif.title']}:" />
							<h:inputText id="tiers_cppnif" value="#{TiersComponent.caractpp.cppNif}" required="false" label="tiers_cppnif" />
					<h:outputText value="#{tiersmsgs['caractpp.cppdatesituation.title']}:" />
							<p:calendar id="tiers_cppdatesituation" value="#{TiersComponent.caractpp.cppDateSituation}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{tiersmsgs['caractpp.cppdateetatphysique.title']}:" />
							<p:calendar id="tiers_cppdateetatphysique" value="#{TiersComponent.caractpp.cppDateEtatPhysique}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{tiersmsgs['caractpp.cppetatphysique.title']}:" />
							<h:inputText id="tiers_cppetatphysique" value="#{TiersComponent.caractpp.cppEtatPhysique}" required="false" label="tiers_cppetatphysique" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.save']}" action="#{TiersComponent.saveTiersCaractPP(TiersComponent.tiers.tieTiers, TiersComponent.caractpp)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>